module inst_mem #(
    parameter WIDTH = 8
) (
    input   [WIDTH-1:0]     A,
    output  [31:0]          RD
);

reg [31:0] inst_mem [1<<WIDTH-1:0];
assign RD = inst_mem[A[WIDTH-1:2]]; //Byte fetch
//testbench
initial
    $readmemh("riscvtest.txt",inst_mem);
    
endmodule
